package com.weirong.smartvault.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.weirong.smartvault.entity.CashboxRealtime;

@Repository
@Qualifier("cashboxRealtimeRepository")
public interface CashboxRealtimeRepository extends JpaRepository<CashboxRealtime, Integer>,JpaSpecificationExecutor<CashboxRealtime> {

    public List<CashboxRealtime> findCashboxRealtimeByUnitNo(int unitNo, Sort sort);
    
    public CashboxRealtime findCashboxRealtimeByCode(String code);

}
